// Location -- {name: String}
Locations = new Meteor.Collection("locations");

// Publish complete set of lists to all clients.
Meteor.publish('locations', function () {
  return Locations.find();
});
// Bank --	{name: String}
//			{description: String}
//			{address: String}
//			{street: String}
//			{city: String},
//			{phone: String},
//			{fax: String},
//			{email: String},
//			{website: String},
//			{logo: String} // url

Banks =  new Meteor.Collection("banks");

// Publish complete set of lists to all clients.
Meteor.publish('banks', function (location_id) {
	check(location_id, String);
	return Banks.find({location_id: location_id});
});

// Atm --	{name: String}
//			{address: String}
//			{street: String}
//			{lat: Number},
//			{lng: Number},

Atms =  new Meteor.Collection("atms");
// Publish complete set of lists to all clients.
Meteor.publish('atms', function () {
  return Atms.find();
});